/**
 * 基础类
 * */
function Plain(x, y, shootX, shootY, bitmapData, hp) {
    base(this, LSprite, []);
    var self = this;
    self.x = x;
    self.y = y;
    self.shootX = shootX;
    self.shootY = shootY;
    self.canshoot = false;
    self.islock=false;
    self.move = [0, 0];
    self.speed = 1;
    self.hp = hp;
    self.isdie = false;
    self.shoopIndex = 0;
    self.bitmap = new LBitmap(bitmapData);
    self.addChild(self.bitmap);
}

/**
 * 循环
 * */
Plain.prototype.onframe = function () {
    var self = this;
    //移动
    self.x += self.move[0] * self.speed;
    self.y += self.move[1] * self.speed;
    //射击
    if (self.canshoot){
        self.shoot();
    }
};